package com.huawei.appmarket.service.pinyin;

public final class TransliteratorFunction {
    private long ˏ;

    private static native long create(String str);

    private static native void destroy(long j);

    public static native String[] getAvailableIDs();

    private static native String transliterate(long j, String str);

    public TransliteratorFunction(String str) {
        this.ˏ = create(str);
    }

    protected synchronized void finalize() throws Throwable {
        try {
            destroy(this.ˏ);
            this.ˏ = 0;
            super.finalize();
        } catch (Throwable th) {
            super.finalize();
        }
    }

    public synchronized String ˏ(String str) {
        return transliterate(this.ˏ, str);
    }
}
